﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Viki1.Register" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="h"></div>
<div id="bd" class="w989">
   <div class="cur"><a href="index.aspx">首页</a>>>免费注册</div>
     <div class="right-tit right-tit-xyxs"><span>免费注册</span></div>
     <div class="h20"></div>
     <div class="reg-left l">

          <table class="tal-reg">
                 <tr>
                     <td class="tl">※E-mail地址：</td>
                     <td><asp:TextBox
                             ID="email" runat="server" CssClass="inp"></asp:TextBox>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="邮箱不能为空" ControlToValidate="email"></asp:RequiredFieldValidator>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1"  ControlToValidate="email" runat="server"  ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"  ErrorMessage="邮箱格式错误" Display="Dynamic"></asp:RegularExpressionValidator>
                        
                             </td>
                 </tr>
                 <tr>
                     <td class="tl">※登陆密码：</td>
                     <td><asp:TextBox
                             ID="password" CssClass="inp" runat="server" type="password"></asp:TextBox><asp:RequiredFieldValidator
                                 ID="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空" ControlToValidate="password"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="请输入6位或者6位以上的密码" ControlToValidate="password"  ValidationExpression="\d{6,}"  Display="Dynamic" ></asp:RegularExpressionValidator></td>
                    
                 </tr>
                 
                 <tr>
                     <td class="tl">※确认密码：</td>
                     <td><asp:TextBox
                             ID="pwdConfirm" CssClass="inp" runat="server" type="password"></asp:TextBox><asp:RequiredFieldValidator
                                 ID="RequiredFieldValidator3" runat="server" ErrorMessage="密码不能为空" ControlToValidate="pwdConfirm"></asp:RequiredFieldValidator><asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="两次密码输入的不一致" ControlToValidate="pwdConfirm"  ClientValidationFunction="pwd_confirm" Display="Dynamic"></asp:CustomValidator></td>
                     
                 </tr> 
                 <tr>
                     <td class="tl">※手机号码：</td>
                     <td>
                         <asp:TextBox ID="mobile" runat="server" CssClass="inp"></asp:TextBox><asp:RegularExpressionValidator
                             ID="RegularExpressionValidator4" runat="server" ErrorMessage="手机号码应当为11位" ValidationExpression="\d{11}" ControlToValidate="mobile" Display="Dynamic"></asp:RegularExpressionValidator><asp:RegularExpressionValidator
                             ID="RegularExpressionValidator3" runat="server" ErrorMessage="手机格式不对"  ValidationExpression="13[0-9]{9}" ControlToValidate="mobile" Display="Dynamic"></asp:RegularExpressionValidator></td>
                 </tr>
                 <tr>
                     <td class="tl">推荐码：</td>
                     <td><asp:TextBox ID="tj_code" runat="server" CssClass="inp"></asp:TextBox><asp:RegularExpressionValidator
                             ID="RegularExpressionValidator5" runat="server" ErrorMessage="手机号码应当为11位" ValidationExpression="\d{11}" ControlToValidate="tj_code" Display="Dynamic"></asp:RegularExpressionValidator><asp:RegularExpressionValidator
                             ID="RegularExpressionValidator6" runat="server" ErrorMessage="手机格式不对"  ValidationExpression="13[0-9]{9}" ControlToValidate="tj_code" Display="Dynamic"></asp:RegularExpressionValidator><span style="line-height:20px;margin-left:10px;">*推荐人手机号/推荐码/没有留空   </span></td>
                 </tr>
                 
                 <tr style="height:30px; line-height:30px;">
                 <td></td>
                
                 
                 </tr>
                 <tr>
                     <td class="tl"></td>
                     <td>
					 <input type="hidden" name="dosubmit" value="1">
					 <asp:Button ID="submit"
                         runat="server"  CssClass="btn7-bg mb5" onclick="submit_Click" /> 
                         <br /><input type="checkbox" name="protocol" id="protocol" class="check" checked /><span><a href="index.php?m=main&c=index&a=lists&catid=103" target="_blank" >点击阅读注册协议</a></span></td>
                 </tr>
          </table>
		  
     </div>
     <div class="reg-right r">
          <p>已经有了账号？<br />请直接登陆</p>
          <div class="h"></div>
          <a href="login.aspx" class="btn8-bg"></a>
     </div>
    
     <div class="h20"></div>
     &nbsp;</div>
     <script type="text/javascript">
         jQuery(".right-tit").click(function () {
             var box = jQuery(this).next('.show');
             var s = jQuery(this).find('.a-click');
             var ck = s.text();
             box.stop().slideToggle();
             if (ck == '收起') {
                 s.text('展开');
                 s.addClass('a-icon5-b');
             } else {
                 s.text('收起');
                 s.removeClass('a-icon5-b');
             }

         });

</script>



<script language="JavaScript" type="text/javascript">
   <!--
    function pwd_confirm(source,args){

        var password = $('#MainContent_password').val();
        
        if (args.Value != password )
            args.IsValid = false;
        else
            args.IsValid = true;

    }
   
   </script>
</asp:Content>
